package com.fitzone.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fitzone.model.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("course")
public class Course extends BaseEntity {
    @TableField("course_name")
    private String courseName;

    @TableField("price")
    private BigDecimal price;

    @TableField("vip_price")
    private BigDecimal vipPrice;

    @TableField("start_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @TableField("end_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @TableField("coach_id")
    private Long coachId;

    @TableField("store_id")
    private Long storeId;

    @TableField("max")
    private Integer max;

    @TableField("status")
    private Integer status;

    @TableField(exist = false)
    private Integer count;

    @TableField(exist = false)
    private String coachName;

    @TableField("course_desc")
    private String courseDesc;

    @TableField("course_img")
    private String courseImg;


}
